package com.evildog.workspace.invest.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.invest.application.dto.BillReportListDTO;
import com.evildog.workspace.invest.application.dto.BillReportPageDTO;
import com.evildog.workspace.invest.application.entity.BillReport;
import com.evildog.workspace.invest.application.entity.BillReportListDO;
import com.evildog.workspace.invest.application.entity.BillReportPageDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * billReport Mapper 接口
 * </p>
 *
 * @author evildog
 * @since 2020-08-06
 */
public interface BillReportMapper extends BaseMapper<BillReport> {

    /**
    * 自定义分页
    */
    IPage<BillReportPageDO> getPageList(IPage<BillReportPageDO> page, @Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") BillReportPageDTO pageDTO);

    /**
    * list
    */
    List<BillReportListDO> getList(@Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") BillReportListDTO param);

    BillReport getStatistics(@Param("year") Integer year);
}
